﻿using System;
using System.Xml;
using System.IO;
using System.Xml.Serialization;


public class XmlDeserialization
{
    public static Request_License_compliance_with_fire_safety_requirements Request_License(XmlDocument xDoc)
    {
        object obj;

        using (XmlReader reader = XmlReader.Create(new StringReader(xDoc.OuterXml)))
        {
            reader.MoveToContent();
            switch (reader.Name)
            {
                case "Request_License_compliance_with_fire_safety_requirements":
                    obj = new XmlSerializer(typeof(Request_License_compliance_with_fire_safety_requirements)).Deserialize(reader);
                    break;
                default:
                    throw new NotSupportedException("Unexpected: " + reader.Name);
            }
        }
        Request_License_compliance_with_fire_safety_requirements root = (Request_License_compliance_with_fire_safety_requirements)obj;
        return root;
    }

    public static Response_License_compliance_with_fire_safety_requirements Response_License(XmlDocument xDoc)
    {
        object obj;

        using (XmlReader reader = XmlReader.Create(new StringReader(xDoc.OuterXml)))
        {
            reader.MoveToContent();
            switch (reader.Name)
            {
                case "Response_License_compliance_with_fire_safety_requirements":
                    obj = new XmlSerializer(typeof(Response_License_compliance_with_fire_safety_requirements)).Deserialize(reader);
                    break;
                default:
                    throw new NotSupportedException("Unexpected: " + reader.Name);
            }
        }
        Response_License_compliance_with_fire_safety_requirements root = (Response_License_compliance_with_fire_safety_requirements)obj;
        return root;
    }
}
